#define _CRT_SECURE_NO_WARNINGS 1
#include"together.h"

void stcaktest()
{
	ST st;
	STInit(&st);
	STPush(&st, 5);
	STPush(&st, 6);
	STPush(&st, 5);
	STPush(&st, 9);
	STPush(&st, 1);
	STPush(&st, 10);
	while (!STEmpety(&st))
	{
		printf("%d ", STTop(&st));
		STPop(&st);
	}

}

void Queuetest()
{
	Q s;
	QInit(&s);
	QPush(&s, 5);
	QPush(&s, 6);
	QPush(&s, 7);
	QPush(&s, 5);
	QPush(&s, 10);
	QPush(&s, 15);
	while (!QEmpety(&s))
	{
		printf("%d ", QTop(&s));
		QPop(&s);
	}

}


int main()
{
	//stcaktest();
	Queuetest();
	return;
}